<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="accountDetail.title"/></title>
    <meta name="heading" content="<fmt:message key='accountDetail.heading'/>"/>
    <meta name="menu" content="YADataMenu"/>
    <link type="text/css" href="<c:url value='/scripts/jquery-ui/css/smoothness/jquery-ui-1.8.12.custom.css'/>" rel="stylesheet" />	
	<script type="text/javascript" src="<c:url value='/scripts/jquery-ui/js/jquery-1.5.1.min.js'/>"></script>
	<script type="text/javascript" src="<c:url value='/scripts/jquery-ui/js/jquery-ui-1.8.12.custom.min.js'/>"></script>
	<script>
	$(function() {
		$( "#accountForm_account_openDay" ).datepicker();
		$( "#accountForm_account_stockShOpenDay" ).datepicker();
		$( "#accountForm_account_stockSzOpenDay" ).datepicker();
		$( "#accountForm_account_stockShOpenDayB" ).datepicker();
		$( "#accountForm_account_stockSzOpenDayB" ).datepicker();
	});
</script>
</head>

<s:form id="accountForm" action="saveAccount" method="post" validate="true">
    <li style="display: none">
        <s:hidden key="account.id"/>
    </li>
    <s:textfield key="account.account" required="true" cssClass="text medium"/>
    <s:textfield key="account.name" required="true" cssClass="text medium"/>
    <s:select key="account.bank" list="accountBanks" listKey="description" listValue="description" cssClass="select"/>
    <s:select key="account.staff.id" list="staffs" listKey="id" listValue="name" cssClass="select"/>
    <s:textfield key="account.openDay" required="true" cssClass="text medium"/>
	<s:select key="account.transfer" list="accountTransfers" listKey="description" listValue="description" cssClass="select"/>
	<s:textfield key="account.stockShNumber" required="false" cssClass="text medium"/>
	<s:textfield key="account.stockShOpenDay" required="false" cssClass="text medium"/>
	<s:textfield key="account.stockShNumberB" required="false" cssClass="text medium"/>
	<s:textfield key="account.stockShOpenDayB" required="false" cssClass="text medium"/>
	<s:textfield key="account.stockSzNumber" required="false" cssClass="text medium"/>
	<s:textfield key="account.stockSzOpenDay" required="false" cssClass="text medium"/>
	<s:textfield key="account.stockSzNumberB" required="false" cssClass="text medium"/>
	<s:textfield key="account.stockSzOpenDayB" required="false" cssClass="text medium"/>
  	<s:textfield key="account.remark" required="false" cssClass="text medium"/>
    <li class="buttonBar bottom">
        <s:submit cssClass="button" method="save" key="button.save" theme="simple"/>
        <s:submit cssClass="button" method="cancel" key="button.cancel" theme="simple"/>
    </li>
</s:form>

<script type="text/javascript">
    Form.focusFirstElement($("accountForm"));
</script>